package com.whh.parseData.parseXml.appoint;

import java.io.File;

public class XmlFileDefaultImpl implements XmlFile {
    @Override
    public String getXmlFileType(File file) {
        String fileType = "";
        if (null == file) {
             throw new  NullPointerException("file is null");
        }
        String name = file.getName();
        if (name.length() > 3) {
            return name.substring(0,3);
        }
        return fileType;
    }
}
